import { withRouter } from "react-router-dom";
import React, { Component } from 'react';
class MyHeader extends Component {
    render() {
        return (
            <div className='header'>
                <div className="title">全部商品</div>
                <div className="input-box"  onClick={()=>{this.props.history.push('/search')}}>
                    <input type="text" placeholder='搜索店铺内商品' />
                </div>
            </div>
        );
    }
}

export default withRouter(MyHeader);